<!DOCTYPE html>
<!--ES6 let的例子-->
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		let sum=0;
		for(let i=0;i<10;i++)
		{
			sum=sum+i;
		}
		//console.log(i);
		console.log(window.sum);
	</script>
</html>
